<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/framework/tcp/framework/Client.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_5752cadd8276ecfd63d9b924f2a4d4b5.html">framework</a></li><li class="navelem"><a class="el" href="dir_c67741c6509c9bd4aec6faa9fd694608.html">tcp</a></li><li class="navelem"><a class="el" href="dir_cf0ab36ee90451b75992f2af7ab5af86.html">framework</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Client.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_client_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __CLIENT_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __CLIENT_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;../../../time/Time.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160; </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<a class="code" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">class </span><a class="code" href="class_c_timer.html">CTimer</a>;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">class </span><a class="code" href="class_c_basic_service.html">CBasicService</a>;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">class </span><a class="code" href="class_c_tcp_io_socket.html">CTcpIoSocket</a>;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<a class="code" href="_client_8h.html#a34531cf1408a889d48a597974087578e">EXPORT_SHARED_PTR</a>(<a class="code" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>, <a class="code" href="class_c_timer.html">CTimer</a>);</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<a class="code" href="_client_8h.html#a34531cf1408a889d48a597974087578e">EXPORT_SHARED_PTR</a>(<a class="code" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>, <a class="code" href="class_c_tcp_io_socket.html">CTcpIoSocket</a>);</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_client.html">   12</a></span>&#160;<span class="keyword">class </span><a class="code" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="code" href="class_client.html">Client</a></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;{</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    <a class="code" href="tools_8h.html#af0d60cfe49f1e07cbec28c12afc4343e">delete_class_copy_operator</a>(<a class="code" href="class_client.html">Client</a>);</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="comment">// 构造空的函数</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <a class="code" href="class_client.html">Client</a>();</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <a class="code" href="class_client.html">Client</a>(<a class="code" href="class_c_basic_service.html">CBasicService</a>* service);</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="class_client.html">Client</a>();</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_client.html#a95dc32ad76a8bde7a525408d03b842ed">   26</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_client.html#a95dc32ad76a8bde7a525408d03b842ed">Start</a>(<span class="keywordtype">void</span>* invoker) { this-&gt;Close(); <span class="keywordflow">return</span> <span class="keyword">true</span>; };</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_client.html#a057f67d78d95863dc2667270341d95c8">   29</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_client.html#a057f67d78d95863dc2667270341d95c8">GetType</a>() { <span class="keywordflow">return</span> 0; }</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_client.html#a9532ae1d6478f85101f0d2e99b2b1703">   32</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_client.html#a9532ae1d6478f85101f0d2e99b2b1703">GetName</a>() { <span class="keywordflow">return</span> <span class="stringliteral">&quot;Client&quot;</span>; }</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_client.html#a7908db69b4f09eebe469fc69ff0e0c42">   41</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_client.html#a7908db69b4f09eebe469fc69ff0e0c42">ReadComplete</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dealSize, <span class="keyword">const</span> <span class="keywordtype">char</span>* msg) { <span class="keywordflow">return</span> 0; }</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_client.html#a812ce38df4b1cd81b2b057733f998f49">   50</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_client.html#a812ce38df4b1cd81b2b057733f998f49">WriteComplete</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dealSize, <span class="keyword">const</span> <span class="keywordtype">char</span>* msg) { <span class="keywordflow">return</span> 0; }</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="class_client.html#a3a51b4121807ea860a242a86cfb9e9ab">   58</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_client.html#a3a51b4121807ea860a242a86cfb9e9ab">TimeoutComplete</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* msg) { <span class="keywordflow">return</span> 0; }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="class_client.html#ace69bff65ba9f595115c1b80e10f687c">   61</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_client.html#ace69bff65ba9f595115c1b80e10f687c">SetSocketOpt</a>(<a class="code" href="class_c_tcp_io_socket.html">CTcpIoSocket</a>* s) { <span class="keywordflow">return</span>; }</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetSocket() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keyword">virtual</span> std::string GetClientIden() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">SOCKIDEN</a> GetSocketIden() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> PostRecv(<span class="keywordtype">char</span>* buff, <span class="keywordtype">size_t</span> size);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> PostWrite(<span class="keyword">const</span> <span class="keywordtype">char</span>* buff, <span class="keywordtype">size_t</span> size);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> Post(<a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*complete)(<span class="keywordtype">void</span>*), <span class="keywordtype">void</span>* invoker);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> Close();</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetTimeout(<span class="keyword">const</span> <a class="code" href="class_c_time_base.html">CTimeBase</a>&amp; t);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="class_c_machine_time.html">CMachineTime</a>* StartTime(<a class="code" href="class_c_machine_time.html">CMachineTime</a>&amp; t);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> ResetTimer();</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keyword">static</span> <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> _ReadComplete(<span class="keywordtype">char</span>* data, <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> dwSize, <a class="code" href="class_c_sock_error.html">CSockError</a> ec, <span class="keywordtype">void</span>* invoker);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keyword">static</span> <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> _WriteComplete(<span class="keywordtype">char</span>* data, <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> dwSize, <a class="code" href="class_c_sock_error.html">CSockError</a> ec, <span class="keywordtype">void</span>* invoker);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keyword">static</span> <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> _PostComplete(<span class="keywordtype">char</span>* data, <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> dwSize, <a class="code" href="class_c_sock_error.html">CSockError</a> ec, <span class="keywordtype">void</span>* invoker);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keyword">static</span> <a class="code" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> _TimeoutComplete(<a class="code" href="class_c_sock_error.html">CSockError</a> ec, <span class="keywordtype">void</span>* invoker);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_client.html#ac9ef3d3342a564f93d6d94ee795a28c0">  103</a></span>&#160;    <a class="code" href="class_shared_ptr.html">SharedPtr&lt;CTcpIoSocket&gt;</a> <a class="code" href="class_client.html#ac9ef3d3342a564f93d6d94ee795a28c0">_cliSock</a>;   <span class="comment">// 客户端套接字</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="class_client.html#aeed5abe9b4741420e5abe29b42c4f621">  104</a></span>&#160;    <a class="code" href="class_shared_ptr.html">SharedPtr&lt;CTimer&gt;</a> <a class="code" href="class_client.html#aeed5abe9b4741420e5abe29b42c4f621">_timer</a>;           <span class="comment">// 定时器</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="class_client.html#a4889e8635ac9c85685cca164608dc4f8">  105</a></span>&#160;    <span class="keywordtype">void</span>* <a class="code" href="class_client.html#a4889e8635ac9c85685cca164608dc4f8">_invoker</a>;                     <span class="comment">// 用户传递的数据</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="class_client.html#ab206b489dcd55b5397b6360b62dbb22e">  106</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_client.html#ab206b489dcd55b5397b6360b62dbb22e">_isClose</a>;                      <span class="comment">// 防止多次关闭</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="class_client.html#a5922d4b508779e8788fdbd3a6d137b01">  107</a></span>&#160;    <a class="code" href="class_service.html">Service</a>* <a class="code" href="class_client.html#a5922d4b508779e8788fdbd3a6d137b01">_service</a>;                  <span class="comment">// service指针</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="class_client.html#ac2055578ac48afabe5af487878450f68">  108</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_server.html">Server</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="class_client.html#ab1570a30ef48c7e3c947d66d00072375">  109</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_client_server.html">ClientServer</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="class_client.html#a6474ceb8669761e879329b39c3afb899">  110</a></span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_service.html">Service</a>;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;};</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<a class="code" href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#endif // __CLIENT_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclass_c_sock_error_html"><div class="ttname"><a href="class_c_sock_error.html">CSockError</a></div><div class="ttdoc">套接字错误信息类</div><div class="ttdef"><b>Definition:</b> <a href="_sock_error_8h_source.html#l00013">SockError.h:13</a></div></div>
<div class="ttc" id="aclass_server_html"><div class="ttname"><a href="class_server.html">Server</a></div><div class="ttdef"><b>Definition:</b> <a href="_server_8h_source.html#l00013">Server.h:13</a></div></div>
<div class="ttc" id="aclass_shared_ptr_html"><div class="ttname"><a href="class_shared_ptr.html">SharedPtr&lt; CTcpIoSocket &gt;</a></div></div>
<div class="ttc" id="aclass_client_html_aeed5abe9b4741420e5abe29b42c4f621"><div class="ttname"><a href="class_client.html#aeed5abe9b4741420e5abe29b42c4f621">Client::_timer</a></div><div class="ttdeci">SharedPtr&lt; CTimer &gt; _timer</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00104">Client.h:104</a></div></div>
<div class="ttc" id="aclass_client_html_a4889e8635ac9c85685cca164608dc4f8"><div class="ttname"><a href="class_client.html#a4889e8635ac9c85685cca164608dc4f8">Client::_invoker</a></div><div class="ttdeci">void * _invoker</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00105">Client.h:105</a></div></div>
<div class="ttc" id="aclass_c_time_base_html"><div class="ttname"><a href="class_c_time_base.html">CTimeBase</a></div><div class="ttdoc">时间基类</div><div class="ttdef"><b>Definition:</b> <a href="_time_8h_source.html#l00078">Time.h:78</a></div></div>
<div class="ttc" id="atools_8h_html_af0d60cfe49f1e07cbec28c12afc4343e"><div class="ttname"><a href="tools_8h.html#af0d60cfe49f1e07cbec28c12afc4343e">delete_class_copy_operator</a></div><div class="ttdeci">#define delete_class_copy_operator(ClassName)</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00345">tools.h:345</a></div></div>
<div class="ttc" id="aclass_client_html_ab206b489dcd55b5397b6360b62dbb22e"><div class="ttname"><a href="class_client.html#ab206b489dcd55b5397b6360b62dbb22e">Client::_isClose</a></div><div class="ttdeci">bool _isClose</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00106">Client.h:106</a></div></div>
<div class="ttc" id="a_sock_tools_8h_html_ac7875a7f6984241a06892f7041b4d30a"><div class="ttname"><a href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">SOCKIDEN</a></div><div class="ttdeci">DEF_BEG_LIBTOOLS typedef INT64 SOCKIDEN</div><div class="ttdoc">SOCKET唯一标识符ID</div><div class="ttdef"><b>Definition:</b> <a href="_sock_tools_8h_source.html#l00019">SockTools.h:19</a></div></div>
<div class="ttc" id="atools_8h_html_a201ce692c9dca6599e5c12d00167419b"><div class="ttname"><a href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a></div><div class="ttdeci">#define DEF_BEG_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00036">tools.h:36</a></div></div>
<div class="ttc" id="aclass_client_html_a7908db69b4f09eebe469fc69ff0e0c42"><div class="ttname"><a href="class_client.html#a7908db69b4f09eebe469fc69ff0e0c42">Client::ReadComplete</a></div><div class="ttdeci">virtual int ReadComplete(unsigned int dealSize, const char *msg)</div><div class="ttdoc">读完成处理函数</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00041">Client.h:41</a></div></div>
<div class="ttc" id="atools_8h_html_a64152c8b939d1ce06c7c5cb6c97b62f8"><div class="ttname"><a href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a></div><div class="ttdeci">#define LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00095">tools.h:95</a></div></div>
<div class="ttc" id="aclass_service_html"><div class="ttname"><a href="class_service.html">Service</a></div><div class="ttdoc">服务基类</div><div class="ttdef"><b>Definition:</b> <a href="_service_8h_source.html#l00019">Service.h:19</a></div></div>
<div class="ttc" id="aclass_client_html_a812ce38df4b1cd81b2b057733f998f49"><div class="ttname"><a href="class_client.html#a812ce38df4b1cd81b2b057733f998f49">Client::WriteComplete</a></div><div class="ttdeci">virtual int WriteComplete(unsigned int dealSize, const char *msg)</div><div class="ttdoc">写完成处理函数</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00050">Client.h:50</a></div></div>
<div class="ttc" id="aclass_client_html_a95dc32ad76a8bde7a525408d03b842ed"><div class="ttname"><a href="class_client.html#a95dc32ad76a8bde7a525408d03b842ed">Client::Start</a></div><div class="ttdeci">virtual bool Start(void *invoker)</div><div class="ttdoc">开始任务，继承者可实现此函数进行处理</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00026">Client.h:26</a></div></div>
<div class="ttc" id="a_client_8h_html_a34531cf1408a889d48a597974087578e"><div class="ttname"><a href="_client_8h.html#a34531cf1408a889d48a597974087578e">EXPORT_SHARED_PTR</a></div><div class="ttdeci">EXPORT_SHARED_PTR(LIBTOOLS, CTimer)</div></div>
<div class="ttc" id="atools_8h_html_ac909db71799bb22cb7d636a34cd785e4"><div class="ttname"><a href="tools_8h.html#ac909db71799bb22cb7d636a34cd785e4">DEF_END_LIBTOOLS</a></div><div class="ttdeci">#define DEF_END_LIBTOOLS</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00038">tools.h:38</a></div></div>
<div class="ttc" id="aclass_client_html_a5922d4b508779e8788fdbd3a6d137b01"><div class="ttname"><a href="class_client.html#a5922d4b508779e8788fdbd3a6d137b01">Client::_service</a></div><div class="ttdeci">Service * _service</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00107">Client.h:107</a></div></div>
<div class="ttc" id="aclass_client_html_a3a51b4121807ea860a242a86cfb9e9ab"><div class="ttname"><a href="class_client.html#a3a51b4121807ea860a242a86cfb9e9ab">Client::TimeoutComplete</a></div><div class="ttdeci">virtual int TimeoutComplete(const char *msg)</div><div class="ttdoc">超时处理</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00058">Client.h:58</a></div></div>
<div class="ttc" id="atools_8h_html_a798af1e30bc65f319c1a246cecf59e39"><div class="ttname"><a href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a></div><div class="ttdeci">unsigned int DWORD</div><div class="ttdef"><b>Definition:</b> <a href="tools_8h_source.html#l00134">tools.h:134</a></div></div>
<div class="ttc" id="aclass_client_html_a057f67d78d95863dc2667270341d95c8"><div class="ttname"><a href="class_client.html#a057f67d78d95863dc2667270341d95c8">Client::GetType</a></div><div class="ttdeci">virtual int GetType()</div><div class="ttdoc">获取类型</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00029">Client.h:29</a></div></div>
<div class="ttc" id="aclass_client_html_ace69bff65ba9f595115c1b80e10f687c"><div class="ttname"><a href="class_client.html#ace69bff65ba9f595115c1b80e10f687c">Client::SetSocketOpt</a></div><div class="ttdeci">virtual void SetSocketOpt(CTcpIoSocket *s)</div><div class="ttdoc">设置套接字选项, 派生类可重写此函数以设置更多的套接字选项</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00061">Client.h:61</a></div></div>
<div class="ttc" id="aclass_c_timer_html"><div class="ttname"><a href="class_c_timer.html">CTimer</a></div><div class="ttdoc">定时器</div><div class="ttdef"><b>Definition:</b> <a href="_timer_8h_source.html#l00069">Timer.h:69</a></div></div>
<div class="ttc" id="aclass_client_html_a9532ae1d6478f85101f0d2e99b2b1703"><div class="ttname"><a href="class_client.html#a9532ae1d6478f85101f0d2e99b2b1703">Client::GetName</a></div><div class="ttdeci">virtual const char * GetName()</div><div class="ttdoc">获取类型名称</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00032">Client.h:32</a></div></div>
<div class="ttc" id="aclass_c_machine_time_html"><div class="ttname"><a href="class_c_machine_time.html">CMachineTime</a></div><div class="ttdoc">机器时间类</div><div class="ttdef"><b>Definition:</b> <a href="_time_8h_source.html#l00149">Time.h:149</a></div></div>
<div class="ttc" id="aclass_c_basic_service_html"><div class="ttname"><a href="class_c_basic_service.html">CBasicService</a></div><div class="ttdoc">服务类 基类</div><div class="ttdef"><b>Definition:</b> <a href="_service_base_8h_source.html#l00015">ServiceBase.h:15</a></div></div>
<div class="ttc" id="aclass_c_tcp_io_socket_html"><div class="ttname"><a href="class_c_tcp_io_socket.html">CTcpIoSocket</a></div><div class="ttdoc">用于tcp进行io投递的套接字类</div><div class="ttdef"><b>Definition:</b> <a href="_tcp_io_socket_8h_source.html#l00017">TcpIoSocket.h:17</a></div></div>
<div class="ttc" id="aclass_client_html"><div class="ttname"><a href="class_client.html">Client</a></div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00012">Client.h:12</a></div></div>
<div class="ttc" id="aclass_client_html_ac9ef3d3342a564f93d6d94ee795a28c0"><div class="ttname"><a href="class_client.html#ac9ef3d3342a564f93d6d94ee795a28c0">Client::_cliSock</a></div><div class="ttdeci">SharedPtr&lt; CTcpIoSocket &gt; _cliSock</div><div class="ttdef"><b>Definition:</b> <a href="_client_8h_source.html#l00103">Client.h:103</a></div></div>
<div class="ttc" id="aclass_client_server_html"><div class="ttname"><a href="class_client_server.html">ClientServer</a></div><div class="ttdef"><b>Definition:</b> <a href="_client_server_8h_source.html#l00010">ClientServer.h:10</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
